﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Databasic.ErrorCode
{
    /// <summary>
    /// 统一分页包装类
    /// </summary>
    /// <typeparam name="T">虚拟返回信息</typeparam>
    public class ApiPageing<T>
    {
        /// <summary>
        /// 消息
        /// </summary>
        public string? Msg { get; set; }
        /// <summary>
        /// 状态码
        /// </summary>
        public ApiEnum Code { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int TotaCount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotaPage { get; set; }
        /// <summary>
        /// 泛型数据
        /// </summary>
        public IList<T>? PageData { get; set; }
    }
}
